• Go to the section of the toolkit and drag Go To into your program.
  • Change the first number in the .go_to() command to 215 and change the second number to 175.
  • Change the name in front of the .go_to() command to net.

We can assign commands to specific sprites by using their name. This is called dot notation.

First we use the sprite's name to assign it. Then we put the action we want after the dot. Like this: name.action()

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("halfcourt") sprite = codesters.Sprite("player4") sprite.go_to(215, -175) net = codesters.Sprite("basketballnet")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)